package com.jason.auto.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class BizException extends RuntimeException {
    private int errorCode;

    private String message;

    public BizException(ResultCode resultCode) {
        super();
        this.errorCode = resultCode.getCode();
        this.message = resultCode.getMsg();
    }
}
